using System;
using MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;
using MinimalistFoodStreet.BackEnd.Infrastructure.Dtos.Request.Tables;

namespace MinimalistFoodStreet.BackEnd.Server.Server.RequestExtend.Tables 
{
	public static class DictionarysRequestCreateExtend 
	{
		public static Dictionary ToCreateEntity(this RequestCreateDictionarysDto dto)
		{
			return new Dictionary 
			{

				DValue = dto.value,
				DDictionaryTypeId = dto.dictionaryTypeId,
				DParentId = dto.parentId,
			};
		}
	}
}